package com.hxtec.polaris.service;

import com.hxtec.polaris.entity.ShopHistory;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author yonyong
 * @Description //历史记录相关
 * @Date 2019/11/25 16:43
 * @Param
 * @return
 **/
public interface HistoryService {
    /**
     * 获取所有浏览历史记录，默认取最新记录前十条
     * @return
     */
    Object getAll();

    /**
     * 添加浏览历史记录，走线程
     * @param request
     * @param shopHistory
     * @return
     */
    Object insert(HttpServletRequest request,ShopHistory shopHistory);

    /**
     * 删除一条浏览记录
     * @param shopHistory
     * @return
     */
    Object delete(ShopHistory shopHistory);

    /**
     * 清空浏览记录
     * @return
     */
    Object deleteAll();
}
